package vip.liux.contracts.repositories.point;

import org.springframework.data.repository.ListCrudRepository;
import org.springframework.data.repository.ListPagingAndSortingRepository;
import vip.liux.contracts.models.point.PointsRule;

import java.util.Optional;

public interface IPointsRuleRepository extends ListPagingAndSortingRepository<PointsRule, Long>, ListCrudRepository<PointsRule, Long> {
    Optional<PointsRule> findByRuleCode(String ruleCode);

    Optional<PointsRule> findEnabledByRuleCode(String ruleCode);
}